<template>
    <div id="main-content">
        <Header></Header>
        <div class="main-body">
            <router-view></router-view>
        </div>
    </div>
</template>
<script setup lang="ts">
import { useRouter,useRoute } from 'vue-router';
import { onMounted } from 'vue';
import Header from '@/views/Layout/Header.vue';

let router = useRouter()
let route = useRoute()
let path = route.path


onMounted(()=>{
    if(path == '/'){
        router.push({path:'/file'})
    }
    
})

</script>
  
<style scoped>
html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    color: #000;
}

.main-body {
    display: flex;
    position: relative;
    width: 100vw;
    height: 95vh;
}
</style>